package com.quectel.core.module.really.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 实有装备
 *
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2021-11-09 14:25:54
 */
@Data
@Schema
public class ReallyEquipmentDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     * 租户
     */
    @Schema(description = "租户")
    private Long tenantId;

    /**
     * 小区
     */
    @Schema(description = "小区")
    @NotNull
    private Long villageId;

    /**
     * 装备类型 字典值
     */
    @Schema(description = "装备类型 字典值")
    @NotNull
    private Byte equipmentType;

    /**
     * 装备名称
     */
    @Schema(description = "装备名称")
    @NotEmpty
    @Length(min = 1, max = 80)
    private String equipmentName;

    /**
     * 照片
     */
    @Schema(description = "照片")
    private String pictures;

    /**
     *
     */
    @Schema(description = "")
    private String creator;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /**
     *
     */
    @Schema(description = "")
    private String editor;

    /**
     *
     */
    @Schema(description = "")
    private Date editTime;

    /************非数据库字段 start ************/
    /**
     * 小区名称
     */
    private String villageName;
    /************非数据库字段 end **************/
}
